<?xml version="1.0" encoding="UTF-8"?>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                template="templates/logintemplate.xhtml">
    <ui:param name="pageTitle" value="#{messages['login.title']}" />
    <ui:define name="content">
         <h:form id="loginForm" prependId="false">
             <p:messages showDetail="false"/>
             <h:panelGrid columns="2">
                 <p:outputLabel for="j_username" value="#{messages['login.username']}: "/>
                 <p:inputText id="j_username" name="j_username" required="true" requiredMessage="#{messages['login.usernameRequired']}"/>
                 <p:outputLabel for="j_password" value="#{messages['login.password']}: "/>
                 <p:password id="j_password" name="j_username" required="true"  requiredMessage="#{messages['login.passwordRequired']}"/>
                 <p:commandButton id="Ok" value="#{messages['login.button']}" action="#{loginBean.doLogin()}" ajax="false"/>
             </h:panelGrid>
         </h:form>
    </ui:define>
</ui:composition>